﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace Pst_Backup_Agent
{
    static class Program
    {
        /// <summary>
        /// Point d'entrée principal de l'application.
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            FrmPstBackupAgent frmMain = new FrmPstBackupAgent();

            if (args.Length == 0)
            {
                frmMain.ShowDialog();
            }
            else
                switch (args[0].ToLower())
                {
                    case "-save":
                        frmMain.BackupFiles();
                        break;
                    default:
                        break;
                }
        }
    }
}
